< previous page page_410 next page >

Page 410
In this chapter, you learn about the part of the program that everyone sees: the user interface. Some programmers are inclined to leave user interface design as an afterthought, thinking the code is the real "guts" of an application and therefore deserves the most attention. However, gripes about fonts, screens, and speed of execution should be taken very seriously. Your users cannot see the code, but the user interface (good or bad) is always right in front of them. Windows offers many opportunities to build an interface that will help get the job done easier. This chapter describes a series of guidelines and examples that will help you make the most of these opportunities.
Designing Effective Forms
Forms are the building blocks of your user interface. Although designing a form in Visual Basic is simple, doing it well is not very easy. Good form design involves more than just inserting controls and programming events. To make a well-designed form, you should understand the form's purpose, how it is going to be used, when it is going to be used, and its relationship with the rest of the program. In addition, within your application, you may have several open forms, each of which must be displayed when appropriate. Some users take advantage of the multitasking freedom offered by Windows, whereas others tend to use only one application at a time. Keep this point in mind when you're designing a user interface (UI): You must manage the flexibility Windows offers to the programmer so that users with any skill level can effectively use the application.
Keep Forms Neat and Uncluttered
The more controls you have on a form, the more important it is to keep them organized. Consider the form shown in Figure 18.1. It looks as though the controls have been placed on the form haphazardly. They are not labeled, lined up, or sized consistently. A better approach is shown in Figure 18.2. Notice that frames, lines, and labels have been added to group related controls. Both illustrations show "working" applications, but the second form has a more visually pleasing appearance, which makes it easier to use.
Visual Basic provides several excellent controls to help you organize a form. One of these controls is the TabStrip control, shown in Figure 18.3, which can be used to segregate controls so that only a few of them are displayed at any given time. This way, you can hide infrequently used options from the average users while still making them available if necessary.
0410-01.jpg
Figure 18.1
A messy form can prevent users
from finding the information they need.

 
< previous page page_410 next page >